<?php
class LoginForm extends sfForm{
	public function configure(){
		$this->setWidgets(array(
      'username' => new sfWidgetFormInput(array('label'=>"ログインID")), 
      'password' => new sfWidgetFormInputPassword(array('label'=>"パースワード")) 
		));

		$this->widgetSchema->setNameFormat('login[%s]');

		$this->setValidators(array(
      'username' => new sfValidatorString(array('required'=>true,'max_length' => 255)), 
      'password' => new sfValidatorString(array('required'=>true,'max_length' => 255))
		));
	}
}